class CollectModel {
  int errno;
  Data data;
  String errmsg;

  CollectModel({this.errno, this.data, this.errmsg});

  CollectModel.fromJson(Map<String, dynamic> json) {
    errno = json['errno'];
    data = json['data'] != null ? new Data.fromJson(json['data']) : null;
    errmsg = json['errmsg'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['errno'] = this.errno;
    if (this.data != null) {
      data['data'] = this.data.toJson();
    }
    data['errmsg'] = this.errmsg;
    return data;
  }
}

class Data {
  int total;
  int pages;
  int limit;
  int page;
  List<Listm> list;

  Data({this.total, this.pages, this.limit, this.page, this.list});

  Data.fromJson(Map<String, dynamic> json) {
    total = json['total'];
    pages = json['pages'];
    limit = json['limit'];
    page = json['page'];
    if (json['list'] != null) {
      list = new List<Listm>();
      json['list'].forEach((v) {
        list.add(new Listm.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['total'] = this.total;
    data['pages'] = this.pages;
    data['limit'] = this.limit;
    data['page'] = this.page;
    if (this.list != null) {
      data['list'] = this.list.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class Listm {
  String brief;
  String picUrl;
  int valueId;
  String name;
  int id;
  int type;
  double retailPrice;

  Listm(
      {this.brief,
      this.picUrl,
      this.valueId,
      this.name,
      this.id,
      this.type,
      this.retailPrice});

  Listm.fromJson(Map<String, dynamic> json) {
    brief = json['brief'];
    picUrl = json['picUrl'];
    valueId = json['valueId'];
    name = json['name'];
    id = json['id'];
    type = json['type'];
    retailPrice = json['retailPrice'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['brief'] = this.brief;
    data['picUrl'] = this.picUrl;
    data['valueId'] = this.valueId;
    data['name'] = this.name;
    data['id'] = this.id;
    data['type'] = this.type;
    data['retailPrice'] = this.retailPrice;
    return data;
  }
}